﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using SYH.Config;
using System.Data;

namespace SYH.Product.DAL
{
   public  class IndustryData
    {
        #region 插入三条记录
        /// <summary>
        /// 插入三条记录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Add(SYH.Product.Model.PublicIndustryData model)
        {
            SqlParameter[] par = new SqlParameter[] { 
                new SqlParameter("@DataId",model.Dataid),
                new SqlParameter("@IndustryId",model.Industryid),
                new SqlParameter("@DataType",model.Datatype)
            };
            return Common.SqlHelper.ExecuteNonQuery(WebConfig.SqlConnString, CommandType.StoredProcedure, "Public_IndustryData_AddMore", par) == 3;
        }
        #endregion
       
    }
}
